<?php
/**
 * Created by PhpStorm.
 * User: shiyi
 * Date: 2018/6/11
 * Time: 22:53
 */
namespace app\api\controller;
use think\Db;

class Index extends Base {

    public function index(){
        $lg_job_count = Db::name('lagou_job')->count();
        $lg_cp_count = Db::name('lagou_company')->count();
        $boss_job_count = Db::name('boss_job')->count();
        $boss_cp_count = Db::name('boss_company')->count();
        return [
            'code'=>0,
            'msg'=>'success',
            'data'=>[
                'lg_job_count'=>$lg_job_count,
                'lg_cp_count'=>$lg_cp_count,
                'boss_job_count'=>$boss_job_count,
                'boss_cp_count'=>$boss_cp_count,
            ]
        ];
    }


}